package cn.qiao.demo.decorator;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年05月14日 12:05
 */
public class Demo {

    public static void main(String[] args) {

        Beverage beverage = new HouseBlend();
        System.out.println("价格:" + beverage.cost() + "描述:"+beverage.getDescription());

        Beverage houseBlend = new HouseBlend();
        houseBlend = new Mocha(houseBlend);
        houseBlend = new Whip(houseBlend);

        System.out.println("价格:" + houseBlend.cost() + "描述:"+houseBlend.getDescription());

    }

}
